package com.guojiaming.shop.bean;

import com.google.gson.annotations.Expose;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

/**
 * @author vivo
 */
@Validated
public class Book {
    @Expose
    @Null
    private Integer bookId;
    @Expose
    @NotNull
    private String bookContent;
    @Expose(serialize = false)
    @NotNull
    private String nextUrl;
    @Expose
    @NotNull
    private String url;
    @Expose
    @NotNull
    private String title;

    @Expose
    @NotNull
    private Integer typeId;

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }


    public Integer getBookId() {
        return bookId;
    }

    public void setBookId(Integer bookId) {
        this.bookId = bookId;
    }

    public String getBookContent() {
        return bookContent;
    }

    public void setBookContent(String bookContent) {
        this.bookContent = bookContent;
    }

    public String getNextUrl() {
        return nextUrl;
    }

    public void setNextUrl(String nextUrl) {
        this.nextUrl = nextUrl;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}